package com.asyf.demo.config.mydefined;

import lombok.Data;

import java.util.Date;

/**
 * @Author yjz
 * @Date 2023/1/1 10:46
 */
@Data
public class ConnectionLeakInfo {

    private Throwable t;

    private Date startTime;

    private long diff;

    public long getDiff() {
        diff = System.currentTimeMillis() - startTime.getTime();
        return diff;
    }
}
